package o;

import android.content.Context;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;
import androidx.annotation.RequiresApi;
import com.huawei.appmarket.R;

public abstract class dle extends ClickableSpan {
    private long ˊ = 0;
    private Context ॱ;

    public abstract void ˎ(View view);

    public dle(Context context) {
        this.ॱ = context;
    }

    @RequiresApi(api = 23)
    public void updateDrawState(TextPaint textPaint) {
        textPaint.setColor(this.ॱ.getColor(R.color.blue_text_007dff));
        textPaint.setUnderlineText(false);
    }

    public void onClick(View view) {
        if (view != null) {
            long currentTimeMillis = System.currentTimeMillis();
            if (currentTimeMillis - this.ˊ > 1000) {
                this.ˊ = currentTimeMillis;
                ˎ(view);
            }
        }
    }
}
